﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using OVS.Business;
using OVS.CoreDomain.Business;
using OVS.CoreDomain;
namespace OVS
{
    public partial class ResendPassword : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           

            if (!Page.IsPostBack)
            {
               

                
            }
        }

        protected void btnResendPassword_Click(object sender, EventArgs e)
        {

            ILoggedin loggedIn = (ILoggedin)Session["LoggedIn"];
             
            

            IVoter voter = new Voter();
            voter.VoterId = txtVoterId.Text;

            IBusinessVoter businessVoter = new BusinessVoter();
            businessVoter.UpdatePassword(voter);

            lblMsg.Text = "Password sent to your emailid. Please check your email";



        }
    }
}
